
#import <Foundation/Foundation.h>

@interface NSString (XMExtension)
//字符数组
- (NSArray *)words;
//是否为纯汉字
- (BOOL)isChinese;
//是否含有汉字
- (BOOL)includeChinese;
//汉字转带声调的拼音
- (NSString *)pinYin;
//汉字转无声调拼音，逗号隔开
- (NSString *)pinYinNoBiao;
//汉字转首字母简写
- (NSString *)firstWords;
//文件大小
- (unsigned long long)xm_fileSize;
//是否含有emoji字符串
+ (BOOL)stringContainsEmoji:(NSString *)string;
//对上传服务器字符串进行编码，为了防止有emoji表情 utf8
+ (NSString *)encodingUploadString:(NSString *)string;
//解码服务器字符串utf8
+ (NSString *)decodingServiceString:(NSString *)serviceString;
//md5
- (NSString *)xm_md5;
//urlEncoding
- (NSString *)urlEncodeString;
//urlDecoding
- (NSString *)urlDecodingString;

@end
